Skip to content

OCTRL-1095: Create observability stack for kubernetes operators#822

Draft
justonedev1 wants to merge 3 commits into
masterfrom
OCTRL-1095-all
Draft

OCTRL-1095: Create observability stack for kubernetes operators#822
justonedev1 wants to merge 3 commits into
masterfrom
OCTRL-1095-all

Conversation

@justonedev1

Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +94 to +95
ConditionStateInitialized = "StateInitialized"
ConditionStateTransitioned = "StateTransitioned"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do they mean exaclty? State transition started and finished?

func (r *TaskReconciler) recordCondition(ctx context.Context, t *aliecsv1alpha1.Task, condType string, condStatus metav1.ConditionStatus, reason, message string) error {
patch := client.MergeFrom(t.DeepCopy())
eventType := v1.EventTypeNormal
if condStatus == metav1.ConditionFalse {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiosity, is a false condition by convention something bad, given that we automatically make it a warning?

Comment thread docs/k3s_observability.md

Pod deletion (which sets the pod to Terminating) is captured at `Metadata` level via `verb: delete`.

What is **not** captured: pod status transitions (Running → Terminating → Succeeded/Failed) — these are `patch` operations on the Pod object and are excluded to avoid noise.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, why noise? i imagine those could be helpful as well.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noise in a sense that they should be already inside the Pod object, so it isn't necessary to copy them (at least that was the reasoning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants